package com.cn.demo.mapper;

import com.cn.demo.entity.Curriculum;
import com.cn.demo.entity.CurriculumExample;
import java.util.List;

import com.cn.demo.entity.WaitJoinCurriculum;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface CurriculumMapper {
    long countByExample(CurriculumExample example);
    int deleteByExample(CurriculumExample example);
    int deleteByPrimaryKey(String curriculumId);
    int insert(Curriculum record);
    int insertSelective(Curriculum record);
    List<Curriculum> selectByExample(CurriculumExample example);
    Curriculum selectByPrimaryKey(String curriculumId);
    int updateByExampleSelective(@Param("record") Curriculum record, @Param("example") CurriculumExample example);
    int updateByExample(@Param("record") Curriculum record, @Param("example") CurriculumExample example);
    int updateByPrimaryKeySelective(Curriculum record);

    int updateByPrimaryKey(Curriculum record);
    int add(Curriculum curriculum);
    List<Curriculum> get(Curriculum curriculum);
    Curriculum getByCurriculumId(String curriculumId);
    List<Curriculum> getByStudentId(@Param("curriculum")Curriculum curriculum,@Param("studentId") String studentId);
    List<Curriculum> getCurriculumByTeacherId(String teacherId);
    int isJoin(WaitJoinCurriculum waitJoinCurriculum);
    Curriculum infoByOrganizationId(String organizationId);

    Curriculum getCurriculumByOrganizationId(String organizationId);

}